module ActsAsLocal
  def self.included(base)
    base.send :extend, ClassMethods
  end

  module ClassMethods
    def acts_as_local
      send :include, InstanceMethods
    end
  end

  module InstanceMethods
    # synchronizes data with remote DB when connection is restored
    def sync
      # TODO
    end
  end
end

